﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace ToyStore.Domain.Store
{
	/// <summary>
	/// Autor audiobooka.
	/// </summary>
	public class Author : BaseEntity
	{
		/// <summary>
		/// Konstruktor.
		/// </summary>
		public Author()
		{
			Products = new List<Product>();
		}

		/// <summary>
		/// Imię i nazwisko autora.
		/// </summary>
		[DisplayName("Autor")]
		public virtual string Name { get; set; }

		/// <summary>
		/// Lista produktów autora.
		/// </summary>
		[DisplayName("Książki")]
		public virtual IList<Product> Products { get; set; }
	}
}
